import http from "./request.js"

// 获取样品状态数量
export function getCountStatus(param) {
	return http.post('/api/sysUser/login', param, true);
}

// 查询线缆
export function getCable(param) {
	return http.get('/api/cableType/page', param);
}
// 查询称重记录
export function getWeight(param) {
	return http.get('/api/weighingRecord/page', param);
}
//线缆类型下拉数据
export function getClassPullDown(param) {
	return http.get('/api/cableType/classInfo', param);
}
//根据线缆类型查询规格型号
export function getModelByclass(param) {
	return http.get('/api/cableType/modelByclass', param);
}
//根据类型以及型号查询详细
export function getSelectInfo(param) {
	return http.get('/api/cableType/selectInfo', param);
}

//获取单位转化数据
export function getUnitConversion(param) {
	return http.get('/api/unitConversion/getUnitConversionAll', param, true);
}

//新增线缆
export function addCable(param) {
	return http.post('/api/cableType/add', param);
}
//线缆详情
export function getDataDetail(param) {
	return http.get('/api/cableType/getOne', param);
}
//线缆编辑
export function editCable(param) {
	return http.post('/api/cableType/update', param);
}


//称重详情
export function getWeightDetail(param) {
	return http.get('/api/weighingRecord/selectById', param);
}
//称重新增
export function addWeighingRecord(param) {
	return http.post('/api/weighingRecord/add', param);
}
//称重编辑
export function editWeightDetail(param) {
	return http.post('/api/weighingRecord/update', param);
}